SftTree/OCX 7.0

SftTree.MakeIntegralHeightPix Method

Softel vdm, Inc.

Vertically resizes the tree control so visible items are displayed in their entirety.

Syntax       

VB.NET

object.MakeIntegralHeightPix(ByVal HeightPix As OLE_YSIZE_PIXELS)

VB

object.MakeIntegralHeightPix(ByVal HeightPix As OLE_YSIZE_PIXELS)

C#.NET

void object.MakeIntegralHeightPix(OLE_YSIZE_PIXELS HeightPix);

VC++

HRESULT object->MakeIntegralHeightPix(OLE_YSIZE_PIXELS HeightPix);

C

HRESULT object->raw_MakeIntegralHeightPix(OLE_YSIZE_PIXELS HeightPix);

Delphi

procedure object.MakeIntegralHeightPix(HeightPix : OLE_YSIZE_PIXELS);

object

A SftTree object.

HeightPix

The height to be used for integral height calculation in pixels.  If 0 is used, the current tree control height is used.

Comments

The MakeIntegralHeightPix method vertically resizes the tree control so visible items are displayed in their entirety.

The MakeIntegralHeight and MakeIntegralHeightPix methods are synonyms, but may use different coordinate systems.

The Height value specifies the maximum height of the tree control to use.  The MakeIntegralHeight method calculates the largest height of the tree control (smaller or equal to Height) so that no partial items are displayed and resizes the control vertically using the calculated height.  This method takes all tree control attributes into consideration, including the presence of a horizontal scroll bar.

The MakeIntegralHeight method should be used after all tree control attributes have been set and all items have been added.  If tree control attributes are changed after using the MakeIntegralHeight method, the tree control does not automatically resize if items become partially visible.

The MakeIntegralHeight method has no effect if variable height items are used (see Items.Style).

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com